/*
 * @Author: Yuluo 568055454@qq.com
 * @Date: 2023年06月16日 23:28:38
 * @LastEditors: Yuluo 568055454@qq.com
 * @LastEditTime: 2023年06月17日 02:57:03
 * @FilePath: \Mood-Blog-System\back\log4.js
 * @Description: 注册log4js日志
 * Copyright (c) 2023 by Yuluo, All Rights Reserved. 
 */
const logger = require('./util/log4js')
const { log } = require('./config')

log.forEach(item => logger._createLogger(item.name, item.level))

module.exports = logger._getLogger;
module.exports.logger = logger;